import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import "./main.css";
import "./Style/Style.scss";
import { BrowserRouter as Router } from "react-router-dom";
import { ConfigProvider } from "antd";
import zhCN from "antd/lib/locale/zh_CN";
import { PaginationStyle } from "./Style/PaginationStyle.ts"; // 导入中文语言包
document.documentElement.style.fontSize = 100 / 1280 + "vw";
ReactDOM.createRoot(document.getElementById("root")!).render(
  <ConfigProvider
    locale={zhCN}
    theme={{
      components: {
        Pagination: PaginationStyle,
      },
    }}
  >
    <Router>
      <App />
    </Router>
  </ConfigProvider>,
);
